package main

import (
	"github.com/gin-gonic/gin"
	_ "github.com/jinzhu/gorm/dialects/postgres"
	"house-property/common"
	"house-property/middleware"
)
func main() {
	db:=common.InitDB()
	defer db.Close()
	db.SingularTable(true)
      r:=gin.Default()
      r.Use(middleware.Cors())
      r=CollectRoute(r)
      panic(r.Run(":9090"))

}


